package service.balance;

import dao.balance.BalanceDao;
import dao.balance.BalanceDaoImpl;

public class BalanceServiceImpl implements BalanceService{
    BalanceDao balanceDao = new BalanceDaoImpl();
    /**
     * 查询余额
     * @param username,come
     * @return float
     * @author 夏添
     * @date 2020/11/12 17:26
     */
    public float getBalance(String username){
        float balance = 0;
        try {
            balance = balanceDao.getBalance(username);
        }catch (Exception e){
            e.printStackTrace();
        }
        return balance;
    }
}
